<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="../tmp/generateSetup.xml" -->
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/" name="generateSetup">
<form id="form1" name="form1" method="post" action="index.php">

<table>
	<tr>
		<th scope="row">klijent</th>
		<td><select name="id" id="id">
			<xsl:for-each select="form/arrays/client/value">
				<option value="{@key}">
				<xsl:if test="@key=/form/rowData/bee_user/id">
					<xsl:attribute name="selected">SELECTED</xsl:attribute>
				</xsl:if>
				<xsl:value-of select="." /> </option>
			</xsl:for-each>
		</select></td>
	</tr>
	<tr>
		<th scope="row">način logiranja </th>
		<td><select name="login_mode" id="login_mode">
      <xsl:for-each select="form/arrays/login_mode/value">
        <option value="{@key}">
        <xsl:if test="@key=/form/variables/login_mode">
          <xsl:attribute name="selected">SELECTED</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="." /> </option>
      </xsl:for-each>
    </select></td>
	</tr>
	<tr>
		<th scope="row">koristi printer </th>
		<td><select name="default_printer" id="default_printer">
				<xsl:for-each select="form/arrays/use_printer/value">
					<option value="{@key}">
						<xsl:if test="@key=/form/variables/default_printer">
							<xsl:attribute name="selected">SELECTED</xsl:attribute>
						</xsl:if>
						<xsl:value-of select="." />					</option>
				</xsl:for-each>

		</select>		</td>
	</tr>
	<tr>
		<th scope="row">drugi printer </th>
		<td><select name="second_printer" id="second_printer">
				<xsl:for-each select="form/arrays/use_printer/value">
					<option value="{@key}">
					<xsl:if test="@key=/form/variables/second_printer">
						<xsl:attribute name="selected">SELECTED</xsl:attribute>
					</xsl:if>
					<xsl:value-of select="." /> </option>
				</xsl:for-each>
		</select></td>
	</tr>
	<tr>
    <th scope="row">traži potvrdu prije ispisa </th>
	  <td><select name="confirmation" id="confirmation">
        <xsl:for-each select="form/arrays/confirmation/value">
          <option value="{@key}">
          <xsl:if test="@key=/form/variables/confirmation">
            <xsl:attribute name="selected">SELECTED</xsl:attribute>
          </xsl:if>
          <xsl:value-of select="." /> </option>
        </xsl:for-each>
    </select></td>
	  </tr>
	<tr>
	  <th scope="row">tip izvješća</th>
	  <td><select name="report_type" id="report_type">
      <xsl:for-each select="form/arrays/report_type/value">
        <option value="{@key}">
        <xsl:if test="@key=/form/variables/report_type">
          <xsl:attribute name="selected">SELECTED</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="." /> </option>
      </xsl:for-each>
    </select></td>
	  </tr>
	<tr>
    <th scope="row">koristi konekciju</th>
	  <td><select name="default_conn" id="default_conn">
      <xsl:for-each select="form/arrays/use_conn/value">
        <option value="{@key}">
        <xsl:if test="@key=/form/variables/default_conn">
          <xsl:attribute name="selected">SELECTED</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="." /> </option>
      </xsl:for-each>
    </select></td>
	  </tr>
	<tr title="NE KORISTI SE" bgcolor="#CCCCCC">
	  <th scope="row">rezervna konekcija</th>
	  <td><select disabled="disabled" name="second_conn" id="second_conn">
      <xsl:for-each select="form/arrays/use_conn/value">
        <option value="{@key}">
        <xsl:if test="@key=/form/variables/second_conn">
          <xsl:attribute name="selected">SELECTED</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="." /> </option>
      </xsl:for-each>
    </select></td>
	  </tr>
	<tr>
    <th scope="row">radna putanja</th>
	  <td><input name="working_path" type="text" id="working_path" value="{form/variables/working_path}" size="50" maxlength="128" /></td>
	  </tr>
	<tr>
	  <td colspan="2">&nbsp;</td>
	  </tr>
	<tr>
		<th colspan="2" scope="row"><div align="right">
			<input name="sys_action=generate" type="submit" id="sys_action_generate" value="Napravi" />
		</div></th>
		</tr>
</table>
</form>
<p><xsl:if test="/form/variables/app_setup_file != ''"><a href="{form/variables/app_setup_file}" target="_blank">setup</a></xsl:if></p>
<p>&nbsp; </p>
</xsl:template>
</xsl:stylesheet>